===========================================================================
 (c) Copyright 2005 Diamond Systems Corporation. The following information
 is copyright by Diamond systems and should not be distributed without 
 permission.
===========================================================================

These VIs were made strictly for the DMM32-AT. If customers wish to run these VIs for other products they will have to make some change. Please read the section on "Configuring VI for my Product"

The following is a description of the VIs


A/D Sample Demo VI (ADSample.vi)
--------------------------------

This demo features the A/D Sample functionality of the DMM-32-AT. This demo samples A/D channels 0-3 and displays the A/D code in two methods, as a vertical bar graph and as numerical display. A/D values range from -32768 to 32767.

A/D settings for the board is bipolar, range of 10V, gain of 1, single-ended, and calibration loaded. Base address is set to 0x300 and the interrupt level is arbitrarily set to 5. Users can modify the base address through the "Base Address" entry field in the Front Panel.



A/D Sample Interrupt Demo VI (ADSampleInt.vi)
---------------------------------------------

This demo features the A/D Sample Interrupt functionality of the DMM-32-AT. This demo samples A/D channels 0-3 at a total conversion rate of 1 KHz and returns the sampled values. The values are displayed in two methods, as a vertial bar graph and as numerical display. A/D values range from -32768 to 32767.

A/D settings for the board is bipolar, range of 10V, gain of 1, single-ended, and calibration loaded. Base address is set to 0x300 and the interrupt level is set to 5. Users can modify both the base address and interrupt level through the "Base Address" and "int_level" entry fields in the Front Panel.



A/D Scan Demo VI (ADScan.vi)
----------------------------

This demo features the A/D Scan functionality of the DMM-32-AT. This demo scans A/D channels 0-3 and displays the A/D code in two methods, as a vertical bar graph and as numerical display. A/D values range from -32768 to 32767.

A/D settings for the board is bipolar, range of 10V, gain of 1, single_ended, scan interval of 20 micro seconds, and calibration loaded. Base address is set to 0x300 and the interrupt level is arbitrarily set to 5. Users can modify the base address through the "Base Address" entry field in the Front Panel.



D/A Convert Demo VI (DAConvert.vi)
----------------------------------

This demo features the D/A Conversion functionality of the DMM-32-AT. This demo outputs D/A code to channels 0-3. D/A code to be output is controlled by slider bars in the Front Panel. Each D/A channel has a corresponding slider bar to control the output code. Users can output D/A code ranging from 0-4095 by sliding the bar to the desired code.

Base address is set to 0x300 and the interrupt level is arbitrarily set to 5. Users can modify the base address through the "Base Address" entry field in the Front Panel.



Digital I/O Demo VI (DIO.vi)
----------------------------

This demo features the digital I/O functionality of the DMM-32-AT. This demo allows users to configure the digital I/O ports to either input or output. There are three sections to the demo; the first section is the top section of the demo which configures the input/output modes of each port. The second section is the three columns of buttons on the left half of the demo for controlling output values. The third section is the three columns of LEDs on the right half of the demo for displaying input values. 

To set the configuration for each digital I/O port, simply flip the switches. When the switch is flipped to the left it will be in input mode, to the right it will be in output mode. The mode of the port is displayed below the switch and should print "Input"/"Output".

When in output mode users can click on the bit they wish to set or clear. Conversely in input mode LEDs will indicate if the bit is set or cleared. In output mode a set bit will have its button depressed while a clear bit will be un-depressed. In input mode a set bit's LED will be lit while a clear bit's LED will be dim. Buttons under the column "DIO X Out" where X is the port identifier A, B, C are for controlling output while LEDs under the column "DIO X In" are for displaying bit values for input.

Base address is set to 0x300 and the interrupt level is arbitrarily set to 5. Users can modify the base address through the "Base Address" entry field in the Front Panel.



Configuring VI for my Product
-----------------------------

The VIs are made specifically for DMM-32-AT. To make the VI work for your product you have to complete the following

1. Change the boardtype. 

2. Make sure base address is set correctly.

3. Make sure interrupt IRQ is set correctly.

4. Make sure all settings in the VI are valid.

5. Make sure all function calls are supported by the board.


To change any of the settings click on "Window" menu option and select "Show Block Diagram". 

To change the board type find the function "DSCInitBoard". The board type for DMM-32-AT is 20. Change this to the appropriate board type. The board type can be found in dscud.h header file. For example to find DMM-32-AT search "DSC_DMM32AT"

Change all other settings appropriately.

